package com.yami.shop.bean.model;

import com.baomidou.mybatisplus.annotation.TableName;
import com.yami.shop.bean.enums.BehaviorTypeEnum;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.data.annotation.Id;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 用户行为实体类
 */
@Data
@TableName("user_behavior")
@EqualsAndHashCode
public class UserBehavior {
    /**
     * 用户ID (BIGINT)
     */
    private String userId;

    /**
     * 商品ID (BIGINT)
     */
    private Long prodId;

    /**
     * 行为类型 (ENUM: VIEW, PURCHASE, FAVORITE, CART)
     */
    private BehaviorTypeEnum behaviorType;

    /**
     * 行为权重（购买=5，收藏=3，加购=2，浏览=1）
     */
    private Integer weight;

    /**
     * 行为时间 (DATETIME)
     */
    private LocalDateTime timestamp;
}
